import request from './http';
import {SsoUser} from "@/types/entity";

/**
 * SSO用户表 前端接口
 */
export default class SsoUserApi {
  static page(data: SsoUser) {
    let { index, size, ...vo } = data;
    return request.post(`/ssoUser/page/${index}/${size}`, vo);
  }

  static save(data: SsoUser) {
    return request.post<SsoUser>('/ssoUser', data);
  }

  static update(data: SsoUser) {
    return request.put<SsoUser>('/ssoUser', data);
  }

  static delete(ids: any) {
    return request.post('/ssoUser/delete', ids);
  }

  static list(data: SsoUser) {
    return request.post('/ssoUser/list', data);
  }

  static listKeyword(keyword: string) {
    return request.get(`/ssoUser/listKeyword?keyword=${keyword}`);
  }

  static getById(id: number) {
    return request.get(`/ssoUser/get/${id}`);
  }


}
